Fixes atom references