Fixes bug in can_apply_helper