Fixes bug in talent tree logic