fixed bug where Build::build method was called statically