fixed bug with convas contexts