fix negative size case on last commit