delete and attributes bugs fixed