Fixed mm detail queries and a null bug.