Fixed log in bug