Fixed bug in cms observer