Fixed all errors in RectangleEntity.