Fixed log in class error