Fixed #1 and fixed #10