fix raphael adaptor