Fixed several issues with different MCUs