Fixed bug in rounded corners implementation.