bug fix for captuire screen