Bug fix

Was causing JS error on the client side.