fix return null struct even if succeeded