Fixed minor bug in framework build