Fixed issue with corner type