Fixed issues in crud operations