fixed synchronization of PMS.isHeadless() method