smallc code fix