Fixed provided for CLOUDSTACK-6416 need to be ported for 32 bit template also