Fixed the upper limit to work