bug fix of screenshot