fixed level draw code