Fixed SRM bug