Fixes to the box and bbox snippet.