bug fix for handling short expressions