fix to closing screenshots