Minor fix to imperial gate keeper script