fixed auto exit for video files
fixed conflict