Fixed binary input bug