bugfixes in apprater