Bug fixed for cappuccino#1464

Fixed issue raised in cappuccino#1464.