Fixed file checking location bug