value exception fix