Fix bug on update and create else paths.