Fix for FileHandler

Signed-off-by: Tarjei400 <adrian.jutrowski@gmail.com>