Add missing annotations in deleteNode method
Fix problem of primitive type