fix for panic, minor asthetics
Merge pull request #1 from iassic/panicfix/profile

fix for panic, minor asthetics