Fixed referencing errors

Fixed referencing errors