Fixed drawing corners bug