fixed input detection in p6