Fix gem and deploy file