fixing static file check