fix build_qs