fixed file input sleep timer

Fixes #97 and #89