fix outerbounds problems