Fixed bug where drag mode was not set properly
Added some methods to Position, fixed warning