Some fixes for blackberry template.