bugfixes in physicallayer