Fix some minor details on the Method Function

Add if statement to compensate the boolean argument