Fixes minor bug in FileHandler class