some errors with self-generated bitmap