Add #ifndef to avoid access problem