fix BMP