BUG: fixed RAS box computation