Question generation bug fixing