fix a upload mask bug