fix typeos thanks to nicolas and ricardo