moments later , she heard him close and lock the terrace doors , and she straightened the ends of the necktie with an expert tug ; then she pulled her sunglasses off the top of her head and perched them on top of max 's head , giving him a reassuring pat so that he would n't shake them off .