Fixed a bug in linkMouseQuery.