Fix automap with black background bug