In four-bit mode for PICBasics LCD commands, your LCD connections can be...

Portx.0, Portx.1, Portx.2 and Portx.3

or

Portx.4, Portx.5, Portx.6 and Portx.7

Make your choice, then make your corrections.