Fix reading profile
Fix variable binding issue
Fix profile saving