Fixed wrong selection after moving graph