fixed core wrong update