fixed bug with the research tree