Fixed some bugs with profile verification