Fixes the getNumColumns call on gingerbread devices

Planning to give felipe a PR and will integrate his branch if/when he accepts