one more check to avoid fatal error in case things did not work