Fixed newline null char bug