Fixed crash with the lock assembler