Fix error when init'ing scala layer

Fix typo preventing layer initialisation.