fix check of show file page