fix right bounds