Solved some bugs in release