Fix bug in portal maximization animation.