fix screenshot taking