Fixed NPE crash with Factorization Barrels

Returns the key to stop NPE crashes.