Fix logic error in creating mem profile