Fixed some bugs and allowed local links