Fix error calling onChange with id