fix bug and use Figaro in production