I corrected my code just after I sent it - couldn't edit the post anymore, should have mentionned it, sorry