fixes Unsupported operand types error