fix some problems brought by the decompile; add puzzle frame