Fixed bug that blocked ip storage in database