Fix bug in PS1