Fix for file handler.

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