Fix many bugs before after upload to real server.