fixed a potential bug. xD

Signed-off-by: Hugo ThePooN Denizart <thepoon@cartooncraft.fr>