Fixed for use with jCanvas v2.0
Fixed for use with jCanvas v2.0