small fix to the maxvm formula