Fixed minion code