Fixed a bug with reversed partial application