Strange. I have seen toggle do strange things before but cant remember what the problem was.

Out of interest, does it work if you use the following instead of toggle:

IF Heart_Beat_LED=0 THEN
...