Fix rightbound handling.