fixed warnings from g++ (wrong type of version of service and wrong order of initialization list)