Fixing access to #id, #lat and #lng