fixed margin issue that occurred during transition