From the description that may relate to where you have the code in your logic. If the screenshot is happening immediately you may need to add more conditions to prevent it until realtime as one possibility.
I look forward to being of further assistance.

Comment