Fixes sidemenu animation issue