Fix initialise function.