Fixed compile bug and server bug