Fixed exception in Designer