fixed bug with undefined properies firstBuild