Make the draw directive work in firefox

Hi there.

I encountered a problem with my version of Firefox (28), the draw directive don't seem to work with this version (i'm not sure its specific to this version though) so i made a quick fix to get it to work.