fixed a bug in IE8

Signed-off-by: filipe garcia <filipe.c.garcia@gmail.com>