Corrected somes bugs.