Fixed compiler

Fixed if in case of succesfull build.