Fixed error reported by gizmo