Weird rendering bug is occurring