fix boundary issues which caused crash when moving albums to the end of the view - issue #259