Fix bug at crud templates