fixed animation bug on linux