fixes incorrect handling of #f