Workaround for transitions and the infinity effect