Fixed negative size bug