Fixed overcapacity bug