Fixed bugs in building effectiveness