fix dependencies of q