fixed mismatch bug and spelling mistake