fixed bug with unit actions that trigger on non selected units