fixed a bug causing hot linking not working