I'm pretty sure the ; within the /focus line is unnecessary and may be causing issues. You can also remove the (Rank 3) from the Fear and the macro will default to your highest rank of the spell. Both /clearfocus lines can be condensed into a single line as it will either clear on holding alt or clear if you have focus that is friendly. The cast line removes the ;Fear and adds []. This is a cleaner way of having it default to attempting to fear your current target if you do not have an enemy set as your focus.
#showtooltip
/clearfocus [modifier:alt] [target=focus,help]
/focus [target=focus,noexists] [target=focus,dead]
/stopcasting
/cast [target=focus,exists,harm] [] Fear
Try this and let me know if it works.