Fixed bugs leftovers from mege, now profiles are fully working.