[FIX] Check for -1 after read from device