Fix for SM refresh