Fixes

This PR solves:

https://github.com/KanoComputing/peldins/issues/1206
https://github.com/KanoComputing/peldins/issues/1225
what happens if it's none of the 4 values? else: ... ?