Fixed showing warning if file does not exist