fixed bugs when p = 48