fix #156 on the 2.2.1-GWT27 branch
Merge pull request #164 from seamusmac/extensions-2.2.x-gwt-2.7

fix #156 on the 2.2.1-GWT27 branch