Fixing some bugs in load/transfer operations