fix BMP error && add exception good catcher