Fix of making screenshots