Fixing crash with FrypanLogic