Fixed the case of null in build command