Fix select outside of canvas and save