fixing canvas stage resize