I found the issue for some of these bugs regarding the visitors turning into the opposite sex. I've now added more coding which should resolve some of these issues and might resolve all the mentioned issues. I have now reuploaded the game.