fixed dynamic page sizing error