Fixed gender calculations, some UI bugs