Now closes error when side bar opens or when the text view is clicked

Signed-off-by: Exikle <dixondcunha@hotmail.com>