fixed references error