fixed lock layer on loading file