Added function to fix the original binary input.