Found and fixed bug in getAmps()