Fixed #221. is_visible method.