Fixed "success" parameter friendly functioin

The success parameter was set to undefined if the there was error
inheritance.