Fixed Line termination bug in command hook