fix screenshot error