fix functions ==> Version 1.0

Add some fix with memory size exeed.