Fixed too much copy paste in getApplied styles method.