fix reversed regex problem