fixed to work in chrome