fixing basicController (cadastra and altera)