Fixed rep and rep2 partial functions.