Fixed dev->dist bug