fixed bug in convert string to number for page