fixed invalid reference