fix bugs with production deploy