Fix Q dependencies