Removed duplicate code in fixed update method