Small bugfix

Fixed a bug that happend when trying to remove a specific position that
does not exist.