fixed crashing of initialiser on matlab