fixing that aPost was query and not a link