fix unfortunate bug