canvas hard code fix

canvas hard code fix