Fix references

Fix references that could not be resolved and causes tsc 0.8.3 to log a warning