fixed bug with sharp motion on FF