fixes compmapptr passing, thanks @gidden