Fixed profiles

Fixes #580