minor fix to realm usage