fix delete and new error