fixed limits bug