fixed bug with js devmode