Fixed for use with jCanvas v2.0