fixed dynamic boundary bug