Some work on checkin problem
Fix a problem with checking in checked out items.