fix false error return

added check so execute no longer throws false errors