Fixed weird behavior due to using record syntax with algebraic data type