[fix] Reference issues

Fixed bug causing badly pointed references when view is loaded