Fixing error with center