fix bug in production