method save bug fixing