Fixed issues #579,#649,#713,#712,#656,#682,#679,#429