Fix rest alignment bug.