fixed bug that caused ElementDoesNotExistError