fixing weird raphael js problem