Fixed bug causing fatal error with payment gateway on initial activation