fixed problem with negative avatar positions