fix: warning try to get property of non object