incomplete pattern match fix