bad code fix detected by D0rk`Angl