fix bug with boundary