fix localise bugs and some profile bugs