corrected bugs in bindmount functions