fix undefined share