update packae.xml
Fix retval checking