Fixed 'at' Attribute

Fixed 'at' attribute and some bugs.