fix htmlfile check