Fix records page class bug