fixed bug with boundry