Fixed bug on js v1.4