fix file engine bug