fixed bugs in the following methods:

- (void)centerInSuperView
- (void)centerVerticallyInSuperView
- (void)centerHorizontallyInSuperView