Checking for invalid size