Fixed bug #3149, #3150 and #3151.
Fixed bug #3149, #3150 and #3151.