solve function bug

update 2013-03-23