fixed up the initialisation of the cgrect