fixing buildcontraints bug