fixed startsWith bug