Fixed bad log pointer
Fixed old function call.