remove undefined err