fix err handler bug