Fixed bug in proc mapping