#141: fixed using profiles
#140: workaround