Fix bugs. (No SSL atm)