Dont srem when empty, fixes #694