fix limit clause