Fix weird gwt error, where limit seems to be used instead of capacity.