Fixing mp boundary