Fix code style in framework