fix bug with cavas size