Fix Contract.color type f-me/carma#1305