Fix syntax error and bad legend place