fixed bug in services module