Quiz and assignment query fixed