Fix for a an error with initialisation that should have been picked up a while ago