fix limit statement