fixed an issue with trying to access an attribute on a callable