Fixed crash bug related to creating save bitmap.