Fixed the incorrect size() method