Explicitly convert sizes to integers in size classifier

 This fixes a problem whereby a string comparison was being done, thereby changing all p tags to titles.