fixed clearing bug
fixed bug with continuous mappings