Fixed bug with comet.