fixed definition visibility bug