fixes #301  not defined