fixing expect