fix issue where setRawMode doesn't exist sometimes