Fixing null char recieve