fixed file not being folder which may have caused problems