Fixed file intent handling.