Fixed bug where declareService property wasn't read correctly from profile