bug fix: sanitised the initialisation routine.