fix timeline bug in firefox & safari