Fix screenshot when alertview is displayed