Fix some warning, note down some problems