Fixed a bug with drawing levels.