fix err with empty sq