fixed runtime compilation errors